import { Entity, Column, PrimaryGeneratedColumn,PrimaryColumn } from 'typeorm';

@Entity('sys_user',{
  comment:"系统用户表"
})
export class User {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({ default: "" })
  username: string;

  @Column({ default: "" })
  avatar: string;

  @Column({ default: "" })
  nickname: string;

  @Column({ default: "" })
  email: string;

  @Column({ default: "" })
  phone: string;

  @Column({ default: "123456" })
  password: string;

  @Column({ default: "0" })
  status: string;

  @Column({ default: "" })
  remark: string;

  @Column({ default: "" })
  create_time: string;

  @Column({ default: "" })
  update_time: string;

  @Column({ default: "" })
  password_salt: string;

  @PrimaryColumn()
  @Column({ default: "" })
  userid: string;

  @Column({ default: "" })
  token: string;


  @Column({ default: true })
  isActive: boolean;
}